<%-- 
    Document   : editworkProject
    Created on : Jul 28, 2012, 10:42:22 AM
    Author     : VANANH
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/> 
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jq.date.js"></script>  
        <link rel="stylesheet" type="text/css" href="../css/ui.datepicker.css"/>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){    
            $j(".changegroup").live('change',function(){
                var id = $j(this).val();
                $j.post("loadDataGroup.jsp?action=addGroup&pv100="+id,function(data){
                        
                        $j(".abc").html(data);
                    });
            });
          
        });
    </script>
    <style type="text/css">
      
        .loadgroup{
            float: left;padding: 3px;
        }
        .abc{
            width: 100%;
            float: left;
            padding: 3px;
            height: 300px;
        }
         .demo_fieldset {
            border: 1px solid #ACBECE;
            margin: 10px;
        }
    </style>
    <f:view>
        <a4j:form id="form-input-customer" >
            <body style=" float:left; width:auto; height:auto; margin:0px;">
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
                <div class="popup" style="height:556px; width:500px;">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="CHỌN NHÓM CHO NHỮNG NGƯỜI ĐƯỢC CHỌN"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content">
                            <div class="form_item_content" style="margin-top:1px; margin-left: 0px;margin-bottom: 10px;" >
                                <div class="item_content" style="display:block;float: left;width: 100%;">
                                    <fieldset class="demo_fieldset" style="float: left;width: 96.5%;">
                                        <legend style="font-weight: bold;color: #5537FF;font-size: 10px;">DANH SÁCH NGƯỜI CẬP NHẬT</legend>
                                     
                                        <div class="fields_input" style="width:99%;float: left;">

                                            <h:inputTextarea value="#{v030Controller.listpersonalforTour}" style="height:60px;width:101.2%;" />

                                        </div>

                                    </fieldset>
                                    <div class="fields_input" style="height: 35px;float: left;background-color: #D1E1F1;">
                                        <label class="lbl_editWork" style="margin-top: 4px; width: auto !important;margin-left: 5px;"><h:outputText value="Tên nhóm"/> <span>: </span></label>
                                        <h:selectOneMenu value="#{v100Controller.pv100}" styleClass="changegroup" style="margin-top: 4px;">
                                            <f:selectItems value="#{v100Controller.listComboV100}" />
                                          
                                        </h:selectOneMenu>
                                    </div>
                                       
                                        <div class="abc">
                                            
                                        </div>
                                      
                                      
                                </div>
                            </div>

                                        <div class="popup-footer" >
                                           
                                <div class="buttonsave" onclick="parent.jQuery.fancybox.close(); " style="margin-right:31px;"  ><span><h:outputText value="#{locale.button_close}"/></span></div>
                                <h:inputHidden value="#{v030Controller.FV050}" id="FV050"/>
                                <h:commandButton   action="#{v030Controller.updateV030forV100}"  value="#{locale.button_save}" styleClass="buttonsave">
                                </h:commandButton>                        
                            </div>
                        </div>          
                        </body>
                    </a4j:form>
                </f:view>
                </html>
                <script type="text/javascript">
                    $j(document).ready(function(){
                        yhight = ($j('.popup').height()-90)+"px" ;
                        $j('.main_content').css('height',yhight );
                        $j('.popup-content').css('height',yhight );
                    });
                </script>

